package lab01;

import java.util.Scanner;

/**
 * Created by 林云志 on 2017/10/8.
 */
public class Test06 {
    public static void main(String[] args) {
        System.out.println("请输入成绩1、2、3、4、5");
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        //switch语句
        switch (n){
            case 1:
                System.out.println("不及格");break;
            case 2:
                System.out.println("及格");break;
            case 3:
                System.out.println("中等");break;
            case 4:
                System.out.println("良好");break;
            case 5:
                System.out.println("优秀");break;
        }
        //if else语句
        System.out.println("请输入成绩1、2、3、4、5");
        n = sc.nextInt();
        if (n==1){
            System.out.println("不及格");
        }
        else if (n==2){
            System.out.println("及格");}
        else if (n==3){
            System.out.println("中等");}
        else if (n==4){
                    System.out.println("良好");}
                    else {System.out.println("优秀");}
        }
            }




